package ru.evga.inse.server.gwt.user.client.menu;

import ru.evga.inse.server.gwt.user.client.IUserAppFactory;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;


public class MenuActivityMapper
    implements ActivityMapper
{
    private IUserAppFactory m_factory;
    private final MainMenuActivity m_mainMenuActivity;

    public MenuActivityMapper(IUserAppFactory factory)
    {
        m_factory = factory;
        m_mainMenuActivity = new MainMenuActivity(m_factory);
    }

    public Activity getActivity(Place place)
    {
        return m_mainMenuActivity;
    }
}
